home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / misc / map.sed < prev    next >
Encoding:
Text File  |  1994-02-02  |  342 b   |  14 lines  |  [TEXT/R*ch]

  1. # Embed each line in a string.
  2. s/^/  "/
  3. s/$/"/
  4. # Convert the first line into a game-module form.
  5. /Xconq/s/^  "Xconq . [+-]* \(.*\)"$/(game-module "xxx"\
  6.   (blurb "\1")\
  7.   )\
  8. /
  9. # Convrt the Map line into area and terrain layer forms.
  10. /Map/s/  "Map \([0-9]*\) \([0-9]*\) .*$/(area \1 \2)\
  11. (area (terrain (by-char "FILL THIS IN!!!")/
  12. $a\
  13. \ \ ))
  14.